package com.codeplex.jtfscli;

import com.codeplex.jtfscli.commands.GetCommand;
import com.codeplex.jtfscli.commands.HistoryCommand;
import com.codeplex.jtfscli.commands.WorkfoldCommand;
import com.codeplex.jtfscli.commands.WorkspaceCommand;
import com.codeplex.jtfscli.commands.WorkspacesCommand;

public class TF {
	public static void main(final String[] args) throws Exception {
		final String cmd = args[0];
		if (cmd.equals("workspaces"))
			new WorkspacesCommand().run(args);
		else if (cmd.equals("workspace"))
			new WorkspaceCommand().run(args);
		else if (cmd.equals("workfold"))
			new WorkfoldCommand().run(args);
		else if (cmd.equals("get"))
			new GetCommand().run(args);
		else if (cmd.equals("history"))
			new HistoryCommand().run(args);
	}
}
